add_library(market STATIC
    MarketDataEngine.cpp
    HistoryDataEngine.cpp
    BarGenerator.cpp
    SessionTemplate.cpp
)

target_link_libraries(market
    Qt5::Core
    Qt5::Network
    common
    redis
)

# 添加测试程序
add_executable(test_session_template
    test_session_template.cpp
)

target_include_directories(test_session_template PRIVATE
    ${CMAKE_SOURCE_DIR}
)

target_link_libraries(test_session_template
    market
    Qt5::Core
    common
) 